<?php
/**
 * PostTag model
 *
 * @property int $post_id
 * @property int $tag_id
 * @property Post $post
 * @property Tag $tag
 */
class PostTag extends MModel {

    static $table_name = 'ml_blog_posts_tags';
    static $belongs_to = array(
        array('ml_blog_posts', 'class_name' => 'Post'),
        array('ml_blog_tags', 'class_name' => 'Tag'),
    );
    static $alias_attribute = array(
        'post' => 'ml_blog_posts',
        'tag' => 'ml_blog_tags'
    );

}

?>
